//
//  LSZWithdrawalHeaderView.m
//  JKFuYinProject
//
//  Created by 九酷 on 2018/3/28.
//  Copyright © 2018年 LC. All rights reserved.
//

#import "LSZWithdrawalHeaderView.h"

@implementation LSZWithdrawalHeaderView

-(id)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithReuseIdentifier:reuseIdentifier];
    if (self) {
        UIView * viewTop = [[UIView alloc]init];
        viewTop.backgroundColor = [UIColor whiteColor];
        [self addSubview:viewTop];
        if(ScreenWidth ==414){
            viewTop.frame = CGRectMake(0,10,ScreenWidth, 50);
        }else
        if(ScreenWidth ==375){
            viewTop.frame = CGRectMake(0,10,ScreenWidth, 50);
        }else{
            viewTop.frame = CGRectMake(0,10,ScreenWidth, 40);
        }
        self.labelType = [[UILabel alloc]init];
        self.labelType.textColor = lightColor;
         [viewTop addSubview:self.labelType];
        if(ScreenWidth ==414){
            self.labelType.frame = CGRectMake(15, 12.5, ScreenWidth-60-30, 25);
        }else
        if(ScreenWidth ==375){
            self.labelType.frame = CGRectMake(15, 12.5, ScreenWidth-60-30, 25);
        }else{
            self.labelType.frame = CGRectMake(15, 10, ScreenWidth-50-30, 20);
        }
        self.labelType = [LSZSpecialPackaging setLabel_14_5_Size:self.labelType];

        self.labelState = [[UILabel alloc]init];
        self.labelState.textColor = redUIColor;
        self.labelState.textAlignment = NSTextAlignmentRight;
        [viewTop addSubview:self.labelState];
        if(ScreenWidth ==414){
            self.labelState.frame = CGRectMake(CGRectGetMaxX(self.labelType.frame), 12.5, 60, 25);
        }else
        if(ScreenWidth ==375){
            self.labelState.frame = CGRectMake(CGRectGetMaxX(self.labelType.frame), 12.5, 60, 25);
        }else{
            self.labelState.frame = CGRectMake( CGRectGetMaxX(self.labelType.frame), 10, 50, 20);
        }
        self.labelState = [LSZSpecialPackaging setLabel_14_5_Size:self.labelState];

        [LSZSpecialPackaging addThreadWithOtherRGB:viewTop A:0 B: viewTop.frame.size.height-1 C:ScreenWidth D:1 R:241 G:241 BB:241];
    }
    return self;
}
@end
